<template>
    <a-card :bordered="false">
        <page-table
            rowKey="#(primaryName)"
            ref="#(beanName)PageTable"
            :query-api="#(beanName)_queryPageApi"
            :delete-api="#(beanName)_deletesApi"
            :addFormUrl="#(beanName)FormUrl"
            :columns="columns"
            :query-param="queryParam"
            :search-data="searchData"
        >
        <template #[[#]]##(customRender)="{text,record}">
            <router-link :to="#(beanName)FormUrl+'/'+record.#(primaryName)">
                <span>{{text}}</span>
            </router-link>
        </template>
        </page-table>
    </a-card>
</template>

<script>
    import {
        #(beanName)FormUrl,
        #(beanName)_queryPageApi,
        #(beanName)_deletesApi
    } from "@/api/#(moduleName)/#(beanName)";
    import {#(beanName)TableColumns,#(beanName)QueryColumns} from "@/profile/#(moduleName)/#(beanName)"
  export default {
  data() {
    return {
        columns:#(beanName)TableColumns,
        searchData:#(beanName)QueryColumns,
        queryParam: {},
        #(beanName)FormUrl,
        #(beanName)_queryPageApi,
        #(beanName)_deletesApi
    };
  }
};
</script>